#ifndef SOBELFILTER_H
#define SOBELFILTER_H
#include <qimage.h>
#include <filter.h>
#include <math.h>

struct _sobel_arr{
    int *R;
    int *G;
    int *B;
    double *dirR;
    double *dirG;
    double *dirB;
};
class SobelFilter : public Filter
{
public:
    struct _sobel_arr sobel_arr(QImage*);
    QImage convolve(QImage *,int mode,double frac);
    QImage convolve(QImage *, int mode);
    QImage convolve(QImage *);
    int * convolve (int*);
    int * intelSobel(QImage *qin);
    ~SobelFilter();


};




#endif // SOBELFILTER_H
